package com.netease.nie.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.netease.nie.model.ExchangeCode;

public interface ExchangeCodeMapper {

	int registerExchangeCodeOwner(
			@Param(value = "exchangeCodeId") int exchangeCodeId,
			@Param(value = "userId") long userId,
			@Param(value = "exchangeTime") long exchangeTime,
			@Param(value = "customGoodsCode") int customGoodsCode,
			@Param(value = "customGoodsId") int customGoodsId) throws Exception;

	Long forceQueryOwnerIdById(int exchangeCodeId);

	ExchangeCode queryExchangeCodeById(@Param(value = "id") int id);

	List<ExchangeCode> queryExchangeCodeByIds(@Param("ids") List<Integer> ids);
}
